package com.yang.studentsapp;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;


/**
 * Created by Administrator on 2016/10/12.
 */
public  class SocietyText extends BaseSociety{


    public SocietyText(CampusSociety society, Context context) {
        super(society, context);
    }

    @Override
    protected View inflaterLayout(LayoutInflater inflater) {
        return inflater.inflate(R.layout.item_society_listview_tv,null,false);
    }

    @Override
    protected void setListener(ViewHolder viewHolder) {
//        viewHolder.setOnclickListener(R.id.item_small_top_pic);
        mConvertView.setOnClickListener(viewHolder);
    }

    @Override
    public void onClickBack(View v, int position, ViewHolder holder) {
        Toast.makeText(mContext,""+position,Toast.LENGTH_SHORT).show();
    }

    @Override
    public void setData(CampusSociety society) {
        super.setData(society);

        mViewHolder.setText(society.getTitle(), R.id.item_content_tv);
    }
}
